#pragma once
#include "../../nclgl/SoundSystem.h"
#include "../../nclgl/CameraNode.h"
#include "Renderer.h"
class GameSound
{
public:
	GameSound(CameraNode* cam);
	~GameSound(void);

	void InsertSound(int index, bool isloop);
	void UpdateSound(float msec);
	bool playDeadSound;
	static GameSound* GetInstance(){
		 return gsInst; 
	}
	static void InitSound(CameraNode* cam){ gsInst = new GameSound(cam); }
protected:
	CameraNode* camera;
	vector<SoundNode*> sv;
	static GameSound* gsInst;
};

